<?php

use think\migration\Migrator;
use think\migration\db\Column;

class ControlPlanType extends Migrator
{
    /**
     * 管控 - 预案类型
     */
    public function change()
    {
        $table = $this->table('control_plan_type');
        $table
            //名称
            ->addColumn('name', 'string', ['limit' => 50, 'comment'=>'类型名称',])
            ->addColumn('description', 'string', ['limit' => 255, 'comment'=>'描述',])

            //注释
            ->setComment('管控 - 预案类型')

            //引擎
            ->setEngine('InnoDB')
            ->save();
    }
}
